package cre.tool.util;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @Author penglai
 * @Date 2016/11/11.
 */
public class FileUtils {

    public static FileWriter gainFileWriter(String basePath, String fileName) throws IOException {
        File file = new File(basePath + fileName);
        if (file.exists()) {
            file.delete();
        }

        return new FileWriter(file);
    }
}
